package org.apache.rocketmq.client.java.clientapis.message;

import java.nio.ByteBuffer;
import java.util.Collection;
import java.util.Map;
import java.util.Optional;


public interface Message {

    String getTopic();

    ByteBuffer getBody();

    Map<String, String> getProperties();

    Optional<String> getTag();

    Collection<String> getKeys();

    Optional<String> getMessageGroup();

    Optional<String> getParentTraceContext();

    Optional<Long> getDeliveryTimestamp();
}
